<template>
  <div id="app">
    <div class="background-overlay">
      <el-card class="contact-card">
        <template #header>
          <div class="header-container">
            <h1>个人联系信息</h1>
            <router-link to="/">
              <el-icon size="30">
                <HomeFilled/>
              </el-icon>
            </router-link>
          </div>
        </template>
        <div>
          <img class="display-image" src="@/assets/img/AvatarIoc/13695148_kuaikes_1733639638.png" alt="展示图片">
          <p>作者: 胡志鹏</p>
          <p>联系手机号: 18852331726</p>
          <p>
            <a href="https://gitee.com/kuaiKes" target="_blank">我的 Gitee 主页</a>
          </p>
        </div>
      </el-card>
    </div>
  </div>
</template>

<script setup>
import {HomeFilled} from "@element-plus/icons-vue";
</script>

<style scoped>
#app {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url('@/assets/img/CarouselImages/257-1920x1080.jpg');
  background-size: cover;
  background-position: center;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* 半透明遮罩，让文字更易读 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-card {
  width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9); /* 卡片半透明背景 */
  z-index: 1;
  padding: 20px;
}

.contact-card h1 {
  font-size: 24px;
  color: #333;
}

.contact-card p {
  font-size: 16px;
  color: #666;
  margin: 8px 0;
}

.display-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.contact-card a {
  color: #007BFF;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}
</style>